package com.chtw.oasystem.controller;

import com.chtw.oasystem.common.response.RespUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author chenhao03
 * @create 2020-11-19 19:12
 */
@RequestMapping("/state")
@RestController
@ResponseBody
public class TestController {

    @GetMapping("/check")
    public RespUtils<Map<String, Object>> check(){
        Map<String, Object> result = new HashMap<>();
        result.put("state", "normal");
        result.put("author", new String[]{"chtw", "cl"});
        return RespUtils.success(result);
    }
}
